package com.jims.api.v1.controller.sync;

import com.jims.master.common.data.Message;
import com.jims.master.common.utils.SecurityUtil;
import com.jims.master.common.web.BaseController;
import com.jims.master.modules.weChatSweepPay.pay.HttpUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * Created by 11 on 2018/10/9.
 */
@RestController
@RequestMapping(value = "/inpBillDetail")
public class InpBillDetailController extends BaseController {
    /**
     * @Title: inpBillDetailInfoOfHealth
     * @Description: 预交金信息
     * @param
     * @author WangYQ
     * @date 2018/10/09
     * @throws
     */
    @RequestMapping(value = "V100/inpBillDetailInfoOfHealth", method = {RequestMethod.GET, RequestMethod.POST})
    public String inpBillDetailInfoOfHealth(String url) throws UnsupportedEncodingException {
        String decodedString = URLDecoder.decode(url, "utf-8");
        decodedString = decodedString.replace("&amp;","&");
        System.out.println("请求路径"+decodedString);
        String s = HttpUtil.postData(decodedString,"");
        System.out.println("返回信息"+s);
        return s;
    }
}
